package com.dengqi.mymodule.activity.asynctask;

import android.os.AsyncTask;
import android.util.Log;

/**
 * Created by dell on 2019/4/25
 */
public class MultiAsyncTask extends AsyncTask<String, Void, String> {

    private String name;

    public MultiAsyncTask(String name) {
        this.name = name;
    }

    @Override
    protected String doInBackground(String... params) {
        Log.e("---", name + " is run " + System.currentTimeMillis() + " thread id " + Thread.currentThread().getId());
        try {
            Thread.sleep(1000 * 10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Log.e("---", name + " is run " + System.currentTimeMillis() + " thread id " + Thread.currentThread().getId()+"完毕");
        return null;
    }

}